package com.zpl.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zpl.order.entity.Cart;
import com.zpl.order.entity.dto.CartKeyWordDTO;

import java.util.List;

public interface CartService {
    boolean insert(Cart cart);
    boolean delete(Long id);
    List<Cart> selectByChecked(Long memberId);
    boolean deleteByChecked(Long memberId);
    boolean update(Cart cart);
    Cart selectById(Long id);
    IPage<Cart> getCartByMemberId(CartKeyWordDTO cartKeyWordDTO);
}
